package cn.jji8.QSGUI.quick.command;

import org.bukkit.command.CommandSender;

import java.util.List;

public class tese1 {
    public static void main(String[] args) {
        CommandManger.addCommand(new String[]{"111", "222"}, new CommandImplement() {
            @Override
            public void command(CommandSender commandSender, String[] args) {
                for(String s:args){
                    System.out.println(" "+s+", ");
                }
                System.out.print("666666");
            }
        },new String[][]{
                {"11111","6666"},
                {"6666","88"},
                {"7","8","9"}
        });
        CommandManger.addCommand(new String[]{"555", "777"}, new CommandImplement() {
            @Override
            public void command(CommandSender commandSender, String[] args) {
                for(String s:args){
                    System.out.println(" "+s+", ");
                }
                System.out.print("6666677777");

            }
        },new String[][]{
                {"22","34d65as"},
                {"as21df","66"},
                {"7","adf8","9asdf"}
        });

        new CommandManger().onCommand(null,null,null,new  String[]{"111","666","666"});
        new CommandManger().onCommand(null,null,null,new  String[]{"222"});
        new CommandManger().onCommand(null,null,null,new  String[]{"777"});
        List a = new CommandManger().onTabComplete(null,null,null,new  String[]{"111",""});
        System.out.println(a);
        a = new CommandManger().onTabComplete(null,null,null,new  String[]{"0",""});
        System.out.println(a);
        a = new CommandManger().onTabComplete(null,null,null,new  String[]{"777","","8"});
        System.out.println(a);
    }
}
